package homework_9_29;

/**
 * @Author: Tiangle
 * @Date: 2021/9/29 19:00
 */
public class W_2 {
    public static void main(String[] args) {
        System.out.println(reserve(12345));
    }
    public static int reserve(int num){
        int re = 0;
        while (num>0){
            re = re*10 + num%10;
            num/=10;
        }
        return re;
    }
}
